Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing logo on visa letters #967

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

timiwahalahti
Copy link
Collaborator

Generated attendee and speaker visa letters didn't have the WPCS logo on them as intended. Fixed this by allowing wkhtmltopdf to access local files.

From wkhtmltopdf docs

      --enable-local-file-access      Allowed conversion of a local file to read
                                      in other local files.

Fixes #786

Props kdrewien, kcristiano, @yoga1103

Screenshots

image

How to test the changes in this Pull Request:

  1. Go to Docs
  2. Select one of the Visa letter options
  3. Generate the PDF
  4. View the PDF, there should be WPCS logo

@timiwahalahti timiwahalahti added [Priority] 1 [Component] Docs Generate official docs for WordCamps (visa letters, sponsorship agreements) labels Jul 20, 2023
Copy link
Member

@iandunn iandunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is the issue that caused that feature to be turned off by default:

wkhtmltopdf/wkhtmltopdf#4536

It seems like it should be safe to re-enable it, since all of our inputs are escaped 👍🏻

@iandunn iandunn merged commit 08845e0 into WordPress:production Oct 9, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Docs Generate official docs for WordCamps (visa letters, sponsorship agreements)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logo missing from generated Speaker & Attendee visa letter PDFs
2 participants